import Layout from '@/layout'

export default [
    {
        path: '/school/publish_message',
        component: Layout,
        meta: {
            title: '发布任务与通知',
            breadcrumb: false,
            icon: 'add-message'
        },
        children: [
            {
                path: '',
                name: 'publish.message',
                component: () => import(/* webpackChunkName: 'school' */ '@/views/school/publish.message'),
                meta: {
                    title: '发布任务与通知',
                    sidebar: false,
                    activeMenu: '/school/publish_message'
                }
            }
        ]
    },
    {
        path: '/school/add_task',
        component: Layout,
        meta: {
            sidebar: false
        },
        children: [
            {
                path: '',
                name: 'add.task',
                component: () => import(/* webpackChunkName: 'school' */ '@/views/school/add.task'),
                meta: {
                    sidebar: false,
                    activeMenu: '/school/publish_message'
                }
            }
        ]
    },
    {
        path: '/school/manage_message',
        component: Layout,
        meta: {
            title: '管理已发布消息',
            breadcrumb: false,
            icon: 'manage-message'
        },
        children: [
            {
                path: '',
                name: 'manage_message',
                component: () => import(/* webpackChunkName: 'school' */ '@/views/school/manage.message'),
                meta: {
                    title: '管理已发布消息',
                    sidebar: false,
                    activeMenu: '/school/manage_message'
                }
            }
        ]
    },
    {
        path: '/school/message_details',
        component: Layout,
        meta: {
            sidebar: false
        },
        children: [
            {
                path: '',
                name: 'school.message.details',
                component: () => import(/* webpackChunkName: 'school' */ '@/views/school/message.details'),
                meta: {
                    sidebar: false,
                    activeMenu: '/school/manage_message'
                }
            }
        ]
    },
    {
        path: '/school/cultivation_plan',
        component: Layout,
        meta: {
            title: '培育计划管理',
            breadcrumb: false,
            icon: 'cultivation-plan'
        },
        children: [
            {
                path: '',
                name: 'cultivation.plan',
                component: () => import(/* webpackChunkName: 'school' */ '@/views/school/cultivation.plan'),
                meta: {
                    title: '培育计划管理',
                    sidebar: false,
                    activeMenu: '/school/cultivation_plan'
                }
            }
        ]
    },
    {
        path: '/school/add_cultivation_plan',
        component: Layout,
        meta: {
            sidebar: false
        },
        children: [
            {
                path: '',
                name: 'add.cultivation.plan',
                component: () => import(/* webpackChunkName: 'school' */ '@/views/school/add.cultivation.plan'),
                meta: {
                    sidebar: false,
                    activeMenu: '/school/cultivation_plan'
                }
            }
        ]
    },
    {
        path: '/school/basic',
        component: Layout,
        redirect: '/school/basic/student_information',
        meta: {
            title: '基本信息管理',
            icon: 'base-info'
        },
        children: [
            {
                path: 'student_information',
                name: 'student.information',
                component: () => import(/* webpackChunkName: 'school' */ '@/views/school/student.information'),
                meta: {
                    title: '学生信息',
                    icon: 'student-info'
                }
            },
            {
                path: 'add_student',
                name: 'add.student',
                component: () => import(/* webpackChunkName: 'school' */ '@/views/school/add.student'),
                meta: {
                    title: '添加学生',
                    sidebar: false,
                    activeMenu: '/school/basic/student_information'
                }
            },
            {
                path: 'teacher_information',
                name: 'teacher.information',
                component: () => import(/* webpackChunkName: 'school' */ '@/views/school/teacher.information'),
                meta: {
                    title: '教师信息',
                    icon: 'teacher-info'
                }
            },
            {
                path: 'class',
                name: 'class',
                component: () => import(/* webpackChunkName: 'school' */ '@/views/school/class'),
                meta: {
                    title: '班级信息',
                    icon: 'class-info'
                }
            },
            {
                path: 'add_class',
                name: 'add.class',
                component: () => import(/* webpackChunkName: 'school' */ '@/views/school/add.class'),
                meta: {
                    title: '添加班级信息',
                    sidebar: false,
                    activeMenu: '/school/basic/class'
                }
            },
            {
                path: 'course',
                name: 'course',
                component: () => import(/* webpackChunkName: 'school' */ '@/views/school/course'),
                meta: {
                    title: '课程信息',
                    icon: 'course-info'
                }
            },
            {
                path: 'major',
                name: 'major',
                component: () => import(/* webpackChunkName: 'school' */ '@/views/school/major'),
                meta: {
                    title: '专业信息',
                    icon: 'major-info'
                }
            }
        ]
    }
]
